package com.songlanyun.modules.donaterecord.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import com.songlanyun.common.enums.DonationConstant;
import com.songlanyun.modules.publicbenefitmsg.entity.PublicBenefitMsgEntity;
import lombok.Data;

/**
 * 捐赠记录
 *
 * @author wuchao
 * @email songlanyun@gmail.com
 * @date 2022-08-11 17:25:26
 */
@Data
@TableName("yxt_donate_record")
public class DonateRecordEntity extends RootEntity<Long, DonateRecordEntity> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    private Long id;
    /**
     * 会员ID
     */
    private Long userId;
    /**
     * 捐赠类型
     */
    private DonationConstant.DonateMsgType type;
    /**
     * 内容
     */
    private String content;
    /**
     * 证书编号
     */
    private String certificateNumber;
    /**
     *
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

	@Override
	public Long getIdentity() {
		return this.getId();
	}
}
